import axios from "../index.js";



// 指挥部模板列表接口
export const listPage = (data) => {
  return axios.request({
    url: "/emergency/commandTemplate/listPage",
    method: "post",
    data: data
  });
};

// 指挥部模板新增
export const templateAdd = (data) => {
  return axios.request({
    url: "/emergency/commandTemplate/save",
    method: "post",
    data: data
  });
};

// 指挥部模板删除
export const templateDetail = (data) => {
  return axios.request({
    url: "/emergency/commandTemplate/deleteById",
    method: "post",
    data: data
  });
};

// 指挥部模板详情
export const getById = (data) => {
  return axios.request({
    url: `/emergency/commandTemplate/getById?id=${data}`,
    method: "get"
  });
};

// 菜单配置机构树
export const menuTree = (data) => {
  return axios.request({
    url: "/system/menu/tree",
    method: "get",
    data: data
  });
};



